package com.luluteam.pushlib.util;

import android.os.Looper;

/**
 * @author Guan
 * @date Created on 2018/11/21
 */
public class ThreadUtil {

    /**
     * 检查是否运行在主线程
     *
     * @return
     */
    public static boolean checkRunOnMainThread() {
        return Looper.getMainLooper().getThread().getId() == Thread.currentThread().getId();
    }
}
